package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.AuthorityMember;
import com.wing.cabinet.model.request.AuthorityMemberForm;
import com.wing.cabinet.model.response.AuthorityMemberVO;

import java.util.List;
import java.util.Map;

/**
 * 权限组成员表-Service
 *
 * @author
 */
public interface AuthorityMemberService extends IService<AuthorityMember> {

    /**
     * 添加
     *
     * @param authorityMemberForm
     * @return
     */
    int add(AuthorityMemberForm authorityMemberForm);
    int addBatch(List<AuthorityMemberForm> authorityMemberFormList);
    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<AuthorityMemberVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<AuthorityMemberVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    AuthorityMemberVO get4appById(Long id);

    int deleteAuthorityMemberById(Long id);

    int batchDeleteAuthorityMemberById(Long[] ids);


}
